<!-- <link rel="stylesheet" href="/modules/assets/morris/morris.css"> -->
<style>
    #datatable_wrapper{padding-top: 0px;border: none;}
    table.table-bordered.dataTable{margin-top: 0px!important;border-left:1px solid #ddd;border-right:1px solid #ddd;}
    table.table thead > tr > th{
        border-bottom: 1px solid #DDDDDD!important;
    }
    div.dataTables_info,div.dataTables_paginate{display: none;}
</style>
<?php
    // var_dump($ret);
?>


<div class="row">
    <div class="col-lg-3 col-sm-6">
        <div class="q_index_showstatus bg00aeae">
            <div class="overflow ">
                <div class="fl"><?php echo $AccountType == 100 ? '企业资料待审核数' : '本月新增客户（名）' ?></div>
                <!-- <div class="fr">比昨天增长8.0%</div> -->
            </div>
            <div class="m-0 counter">
                <?php
                if($AccountType == 100){
                    echo $ret['EntInfoAuditCnt'] ? $ret['EntInfoAuditCnt'] : 0;
                }else{
                    echo $ret['CuurMonthCnt'] ? $ret['CuurMonthCnt'] : 0;
                }
                ?>
            </div>
        </div>
    </div>
    <div class="col-lg-3 col-sm-6">
        <div class="q_index_showstatus bg338ee3">
            <div class="overflow ">
                <div class="fl"><?php echo $AccountType == 100 ? '企业提现待审核数' : '客户总数（名）' ?></div>
            </div>
            <div class="m-0 counter">
                <?php
                    if($AccountType == 100){
                        echo $ret['WithdrawAuditCnt'] ? $ret['WithdrawAuditCnt'] : 0;
                    }else{
                        echo $ret['TotalCnt'] ? $ret['TotalCnt'] : 0;
                    }

                ?>
            </div>
        </div>
    </div>
    <div class="col-lg-3 col-sm-6">
        <div class="q_index_showstatus bg717cb6">
            <div class="overflow ">
                <div class="fl"><?php echo $AccountType == 100 ? '企业总数' : '我的推广活动' ?></div>
            </div>
            <div class="m-0 counter">
                <?php
                    if($AccountType == 100){
                        echo $ret['EntCnt'] ? $ret['EntCnt'] : 0;
                    }else{
                        echo $ret['MyActiveCnt'] ? $ret['MyActiveCnt'] : 0;
                    }
                ?>
            </div>
        </div>
    </div>
    <div class="col-lg-3 col-sm-6">
        <div class="q_index_showstatus bgff5f63">
            <div class="overflow ">
                <div class="fl"><?php echo $AccountType == 100 ? '粉丝总数' : '总绩效（分）' ?></div>
            </div>
            <div class="m-0 counter">
                <?php
                if($AccountType == 100){
                    echo $ret['FansCnt'] ? $ret['FansCnt'] : 0;
                }else{
                    echo $ret['TotalScore'] ? $ret['TotalScore'] : 0;
                }
                ?>
            </div>
        </div>
    </div>
</div>

<?php if($AccountType != 100){  ?>
    <div style="margin-top: 33px;">
    <div class="col-lg-8" style="padding-left: 0px;">
        <div class="portlet" style="border:0px;">
            <div class="portlet-heading">
                <h3 class="portlet-title text-dark">
    最近7日推广订单
                </h3>

            </div>
            <div id="portlet4" class="panel-collapse collapse in">
                <div class="portlet-body" style="height: 500px;">
                     <div class="spread-echarts" >
                        <div id="echart2" style="height: 350px;"></div>
                    </div>
                    <div class="legend-list-wrap">
                        <ul class="legend-list  m-b-10">
                            <li class="legend-item"><i class="fa fa-circle  m-r-15"  style="color: #338EE3"></i>订单数</li>
                            <li class="legend-item"><i class="fa fa-circle  m-r-15"  style="color: #00AEAE"></i>推广数</li>
                        </ul>
                    </div>
                    <!-- <div id="q-morris-line" style="height: 540px;"></div> -->
                </div>

            </div>
        </div>
    </div>
    <div class="col-lg-4" style="padding-right: 0px;">
        <div class="portlet" style="border:0px;">
            <div class="portlet-heading">
                <h3 class="portlet-title text-dark">
    客户标签
                </h3>
            </div>
            <div id="portlet3" class="panel-collapse collapse in" style="height: 460px;">
                <div class="portlet-body" style="height: 500px;">
                    <div class="spread-echarts">
                        <div id="echart1" style="height: 350px;"></div>
                    </div>
                    <!-- <div id="morris-donut-example" style="height: 300px;margin-top: 80px"></div> -->
                    <div class="legend-list-wrap">
                        <ul class="legend-list legend-tag">
<!--                            <li class="legend-item"><i class="fa fa-circle  m-r-15"  style="color: #338EE3"></i>总用户数</li>-->
<!--                            <li class="legend-item"><i class="fa fa-circle  m-r-15"  style="color: #00AEAE"></i>总粉丝数</li>-->
<!--                            <li class="legend-item"><i class="fa fa-circle m-r-15" style="color: #717CB6"></i>总会员数</li>-->
                        </ul>
                    </div>
                </div>
            </div>

        </div> <!-- /Portlet -->
    </div>
</div>

<?php }else{ ?>
    <div class="row" style="margin-top:33px;" >
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="row ">
                        <div class="overflow">
                            <div class="search_litile_tit fl" style="margin-left: 10px;"><span class="tit_diswidth"></span>近期账单</div>
                            <div class="search_litile_tit fr" style="margin-right: 10px;"><a href="/financeplatform/capital" style="font-size: 14px;color: #338ee3;margin-right: 5px;text-decoration:underline;">更多</a> </div>
                        </div>
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <table id="datatable" class="table table-striped table-bordered">
                                <thead>
                                <tr>
                                    <th>金额</th>
                                    <th>变更后金额</th>
                                    <th>记录类型</th>
                                    <th>记录状态</th>
                                    <th>备注</th>
                                    <th>创建时间</th>
                                </tr>
                                </thead>
                                <tbody>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php } ?>



<script src="/modules/js/echarts/echarts.common.min.js"></script>
<script src="/modules/js/echarts/customed.js"></script>

<script src="/modules/js/waypoints.min.js" type="text/javascript"></script>
<script src="/modules/js/jquery.counterup.min.js" type="text/javascript"></script>



<script type="text/javascript">
    jQuery(document).ready(function($) {
        $('.counter').counterUp({
            delay: 100,
            time: 1200
        });
    });

    seajs.use('site/index');
</script>